/**
 * Copyright (c) 2002-2012 旭鸣信息
 * All rights reserved. 
 * File：IFrontArticlesDao.java
 * History: Dec 27, 2012: Initially created, liuzhi.
 */
package com.xteam.ecsystem.dao;

import java.util.List;

import com.xteam.ecsystem.entities.BaseArticleGroup;
import com.xteam.ecsystem.entities.BaseArticleInfo;
import com.xteam.ecsystem.utils.PageCenterStation;

/**
 * 前端首页-站内快讯数据访问层
 * @author liuzhi
 *
 */
public interface IFrontArticlesDao {

	/**
	 * 获得最近的站内快讯列表
	 * @author liuzhi Apr 25, 2013
	 * @return
	 */
	public List<?> getRecentlyArticles();
	
	/**
	 * 分页显示站内快讯
	 * @author liuzhi Apr 25, 2013
	 * @param baiGroup
	 * @param baiTitle
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	public PageCenterStation<?> getArticleList(String baiGroup, String baiTitle, int pageIndex, int pageSize);
	
	/**
	 * 查看站内快讯详情
	 * @author liuzhi Apr 25, 2013
	 * @param baiId
	 * @return
	 */
	public BaseArticleInfo getArticleInfo(String baiId);
	
	/**
	 * 获得站内快讯分类列表
	 * @author liuzhi Apr 25, 2013
	 * @return
	 */
	public List<?> getArticlesGroup();
	
	/**
	 * 获得指定文章的前一篇文章
	 * @author liuzhi Apr 27, 2013
	 * @param baiId
	 * @param baiGroup
	 * @param baiOrder
	 * @return
	 */
	public BaseArticleInfo getPreArticleInfo(String baiId, String baiGroup, int baiOrder);
	
	/**
	 * 获得指定文章的后一篇文章
	 * @author liuzhi Apr 27, 2013
	 * @param baiId
	 * @param baiGroup
	 * @param baiOrder
	 * @return
	 */
	public BaseArticleInfo getNextArticleInfo(String baiId, String baiGroup, int baiOrder);
	
	/**
	 * 根据文章分类编号获得文章分类信息
	 * @author liuzhi Apr 27, 2013
	 * @param bagId
	 * @return
	 */
	public BaseArticleGroup getArticleGroup(String bagId);
}
